import type { CheckboxValueType } from "element-plus";
/** 网卡选项type */
export interface networkoptionsList {
  name: string;
  gateway: string;
  ip: string;
  mask: string;
  mode: string;
  dns: string;
}

/**网卡表单提交type */
export interface networkFormType extends networkoptionsList {
  default_name: string;
}

/**列表选项type */
export interface optionsT {
  label: string;
  value: string;
}

/**http推送设置的请求数据type */
export interface HttpPushForm {
  app_name: string;
  app_key: string;
  api_url: string;
  remark: string;
  topics: CheckboxValueType[];
  id?: number | null;
}

/**校验type */
interface Rule {
  required: boolean;
  message: string;
  trigger: string;
}
/**校验type */
export interface Rules {
  [key: string]: Rule[];
}
